<?php
namespace app\api\model;

use think\Model;

class BannerItem extends Base
{
    protected $table = 'banner_item';
    protected $autoWriteTimestamp = 'datetime';

    public function img()
    {
        return $this->belongsTo('Image', 'img_id', 'id');
    }

}